package com.haima.sage.bigdata.api.common;

import java.util.regex.Pattern;

public class Constants {
    public static final String DAY_PATTERN = "yyyy-MM-dd";
    public static final String DATE_PATTERN = "yyyy-MM-dd HH:mm:ss.SSS";
    public static final String FROM = "from";
    public static final String SIZE = "size";
    public static final String DEFAULT_FORMAT = "json";
    public static final String AES_KEY = "T0X3o+NwHxkPETBSnyY8MQ==";
    public static final String INPUT_JSON_FORMAT_ERROR_EN = "input json format error";
    public static final String INPUT_JSON_FORMAT_ERROR_CN = "输入的JSON格式错误";
    public static final String SIGN_ERROR_EN = "sign failure";

    public static final String SIGN_ERROR_CN = "签名错误";
    public static final String NO_POWER_ACCESS_TABLE_ERROR_EN = "no power to access table, check your table name or app key please";
    public static final String NO_POWER_ACCESS_TABLE_ERROR_CN = "没有权限访问此数据表, 请检查app key或表名";
    public static final String NO_POWER_DELETE_TASK_ERROR_EN = "no power to delete task";
    public static final String NO_POWER_DELETE_TASK_ERROR_CN = "没有权限删除任务";
    public static final String APP_SYSTEM_SECRET_DECRYPT_ERROR_EN = "business system secret decrypt fail";
    public static final String APP_SYSTEM_SECRET_DECRYPT_ERROR_CN = "业务系统密钥解密失败";
    public static final String TIME_ERROR_EN = "time failure";
    public static final String TIME_ERROR_CN = "时间失效";
    public static final String APP_KEY_EMPTY_ERROR_EN = "appkey must not empty";
    public static final String APP_KEY_EMPTY_ERROR_CN = "appkey不能为空";
    public static final String APP_USER_NAME_EMPTY_ERROR_EN = "appUserName must not empty";
    public static final String APP_USER_NAME_EMPTY_ERROR_CN = "appUserName不能为空";
    public static final String APP_USER_ID_EMPTY_ERROR_EN = "appUserId must not empty";
    public static final String APP_USER_ID_EMPTY_ERROR_CN = "appUserId不能为空";
    public static final String TIME_EMPTY_ERROR_EN = "timestamp must not empty";
    public static final String TIME_EMPTY_ERROR_CN = "timestamp不能为空";
    public static final String SUCCESS_STATUS = "200";
    public static final String FORMAT_XML = "xml";
    public static final String NOT_FOUND_API_ERROR_EN = "not found";
    public static final String NOT_FOUND_API_ERROR_CN = "无此API";
    public static final String API_COMPUTE_ERROR_EN = "api compute error";
    public static final String API_COMPUTE_ERROR_CN = "计算API执行出错";
    public static final String COMPUTE_TASK_MODIFY_ERROR_EN = "compute task modify error";
    public static final String COMPUTE_TASK_MODIFY_ERROR_CN = "计算任务修改出错";
    public static final String MODIFY_SUCCESS_EN = "modify success";
    public static final String MODIFY_SUCCESS_CN = "修改成功";
    public static final String COMPUTE_TASK_DATA_EMPTY_ERRORR_EN = "compute task data must not empty";
    public static final String COMPUTE_TASK_DATA_EMPTY_ERRORR_CN = "计算任务配置不能为空";
    public static final String API_QUERY_ERROR_EN = "api query error";
    public static final String API_QUERY_ERROR_CN = "此API查询出错";
    public static final String NOT_FOUND_DATA_ERROR_EN = "data not exist";
    public static final String NOT_FOUND_DATA_ERROR_CN = "数据不存在";
    public static final String NOT_FOUND_PARAMS_ERROR_EN = "param error or not exist";
    public static final String NOT_FOUND_PARAMS_ERROR_CN = "参数错误或不存在";
    public static final String SQL_QUERY_ERROR_EN = "SQL Syntax Error";

    public static final String NO_POWER_ACCESS_API_EN = "no power to access API";
    public static final String NO_POWER_ACCESS_API_CN = "没有权限访问此API";
    public static final String NO_POWER_MODIFY_THIS_DATA_EN = "no power to modify data";
    public static final String NO_POWER_MODIFY_THIS_DATA_CN = "没有权限修改数据";
    public static final String NO_POWER_ACCESS_THIS_DATA_EN = "no power to access data";
    public static final String NO_POWER_ACCESS_THIS_DATA_CN = "没有权限访问数据";


    public static final String API_COMPUTE_MODIFY_ERROR_EN = "compute task modify error";
    public static final String API_COMPUTE_MODIFY_ERROR_CN = "计算任务修改出错";

    public static final Pattern tablePattern = Pattern.compile("[a-zA-Z0-9-@_*.]+");
    public static final Pattern fieldPattern = Pattern.compile("[a-zA-Z0-9-@_*.]+");
}
